﻿using DarkSKL_Core.MongoDBModules.Models;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using Newtonsoft.Json.Linq;

namespace Dark_Core_Server.Models.User
{
    /// <summary>
    /// 用户文档
    /// </summary>
    public class UserDocument : DocumentUnit
    {
        [BsonElement("UserName")]
        [BsonRepresentation(BsonType.String)]
        public string UserName { set; get; } = "";
        [BsonElement("Password")]
        [BsonRepresentation(BsonType.String)]
        public string Password { set; get; } = "";
        [BsonElement("Level")]
        [BsonRepresentation(BsonType.Int64)]
        public int Level { set; get; } = 0;
        [BsonRepresentation(BsonType.ObjectId)]
        [BsonElement("ProfileId")]
        public ObjectId ProfileId { set; get; } = ObjectId.Empty;

    }
}
